﻿using System;

namespace AbpProjectTemplate.Components.Payments.Event
{
    /// <summary>
    /// 服务订单确认通知
    /// </summary>
    public class ServiceConfimNotifyEventData : PaymentNotifyEventData
    {
        /// <summary>
        /// 用于结束订单的票据
        /// </summary>
        public string PaymentFinishTicket { get; set; }

        public DateTime StartTime { get; set; }

        public ServiceConfimNotifyEventData(PaymentType paymentType, string orderNo, string tradeNo, string paymentFinishTicket, DateTime? startTime = null)
            : base(paymentType, orderNo, tradeNo)
        {
            this.PaymentFinishTicket = paymentFinishTicket;
            this.StartTime = startTime ?? DateTime.Now;
        }
    }
}
